import * as React from "react" import { type SearchParams } from "@/types/table" import { getValidFilters } from "@/lib/data-table" import { Skeleton } from "@/components/ui/skeleton" import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton" import { Shell } from "@/components/shell" import { getEsgEvaluations } from "@/lib/esg-check-list/service" import { getEsgEvaluationsSchema } from "@/lib/esg-check-list/validation" import { EsgEvaluationsTable } from "@/lib/esg-check-list/table/esg-table" import { InformationButton } from "@/components/information/information-button" import { useTranslation } from "@/i18n" interface IndexPageProps { params: Promise<{lng: string}> searchParams: Promise } export default async function IndexPage(props: IndexPageProps) { const searchParams = await props.searchParams const search = getEsgEvaluationsSchema.parse(searchParams) const {lng} = await props.params const {t} = await useTranslation(lng, 'menu') const validFilters = getValidFilters(search.filters) const promises = Promise.all([ getEsgEvaluations({ ...search, filters: validFilters, }), ]) return (

{t('menu.master_data.esg_checklist')}

{/*

협력업체 평가에 사용되는 ESG 자가진단표를 관리{" "} 버튼 을 통해 담당자 연락처, 입찰 이력, 계약 이력, 패키지 내용 등을 확인 할 수 있습니다.

*/}
}> {/* */} } >
) }